#ifndef AA
#define AA
#include "cJSON.h"

typedef struct AdResource
{
  int id;
  int ad_id;
  int type_id;
  char* path;
  char* sign;
  int index;
}AdResource;

typedef struct  Ad
{
  int id;
  int template_id;
  int customer_id;
  char* start_time;
  char* end_time;
  int state;
  int index;
  AdResource *adResources[3];
    /* data */
}Ad;

void handleAdList(cJSON* adListArray);
#endif

